package api.sea;

import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

public class StaySailApi {
    private static final String stay_sail_url= Url.Base_Url+ "consumer/lgsWtd3/process";
    public ResponseData stay_sail(String systemNumber,String forwarderNo,String isfNum, String stuffingDate,String caseNo,String  sealNo,int state) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("systemNumber",systemNumber);
        data.put("forwarderNo",forwarderNo);
        data.put("isfNum",isfNum);
        data.put("stuffingDate",stuffingDate);
        data.put("caseNo",caseNo);
        data.put("sealNo",sealNo);
        data.put("state",state);
        return HttpClientUtils.post_json(stay_sail_url,data);
    }
}
